package com.zzit.vjv.biz.impl.documentReview_impl.developer;

import com.zzit.vjv.biz.documentReview_biz.developer.DevAddBiz;
import com.zzit.vjv.dao.documentReview_dao.developer.DevAddDao;
import com.zzit.vjv.entity.documentReview_entity.AppInfo;
import com.zzit.vjv.entity.documentReview_entity.AppVersion;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service("devAddBiz")
public class DevAddImpl implements DevAddBiz {

    @Resource(name = "devAddDao")
    private DevAddDao devAddDao;

    /**
     * 添加app信息方法(用于前台上传新的app信息)
     * @param map
     * @return
     */
    @Override
    public int addAppInfo(Map<String,Object> map) {



        return map==null?0:devAddDao.addAppInfo(map);
    }

    /**
     * 添加app最新版本方法(用于前台新增版本信息)
     * @param map
     * @return
     */
    @Override
    public int addAppVersion(Map<String, Object> map) {

        int row=devAddDao.addAppVersion(map);

        AppVersion appVersion=new AppVersion();



        System.err.println("主键:"+appVersion.getId()+"/或者"+map.get("id"));


        return map==null?0:row;
    }
}
